<?php
/**
 * 信息服务 模型
 * @author ThankPHP
 */
class EinfoservicesModel extends Model {
	/**
	 * 设置关联数据库表
	 *
	 * @var unknown_type
	 */
	public $_link = array(
		//关联分类表
		array(
			'mapping_type' => BELONGS_TO,
			'class_name' => 'Einfoc',
			'foreign_key' => 'id',
			'mapping_name' => 'Class',
			'mapping_fields' => 'id,name',
		),
		//关联企业表
		array(
			'mapping_type' => BELONGS_TO,
			'class_name' => 'enterprise',
			'foreign_key' => 'enter_id',
			'mapping_name' => 'Enterprise',
			'mapping_fields' => 'enter_id,name'
		)
	);
}